﻿using System;
using System.Collections.Generic;
using System.Text;
using Colorful.Models;

namespace Colorful.Apps.ERP.Models
{
    /// <summary>
    /// 进货表
    /// </summary>
    public class Purchase : BaseId
    {
        /// <summary>
        /// 产品Id（下拉框）
        /// </summary>
        public string ProductId { get; set; }
        /// <summary>
        /// 进货价格
        /// </summary>
        public decimal Cost { get; set; }
        /// <summary>
        /// 进货人（下拉框：从Colorful.Apps.Models.Member读取）
        /// using (var appDb = Colorful.Apps.GetDb()) { appDb.Mmebers... }
        /// </summary>
        public string UserId { get; set; }
        /// 数量
        /// </summary>
        public int Amount { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string Spec { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
    }
}
